package org.dromara.patrol.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.patrol.domain.PatrolSnapRecord;

/**
 * 巡店管理-处理记录业务对象 patrol_snap_record
 *
 * @author LionLi
 * @date 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PatrolSnapRecord.class, reverseConvertGenerate = false)
public class PatrolSnapRecordBo extends BaseEntity {

    /**
     * 记录id
     */
    @NotNull(message = "记录id不能为空", groups = { EditGroup.class })
    private Long recordId;

    /**
     * 记录名称
     */
    @NotBlank(message = "记录名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 备注说明
     */
//    @NotBlank(message = "备注说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;

    /**
     * 已编辑图片地址
     */
//    @NotBlank(message = "已编辑图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imageUrl;

    /**
     * 有无问题（字典表：HAD_ISSUE 有问题，NO_ISSUE 无问题）
     */
    @NotBlank(message = "有无问题（字典表：HAD_ISSUE 有问题，NO_ISSUE 无问题）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String markType;

    /**
     * 巡店图片id
     */
    @NotNull(message = "巡店图片id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long snapImageId;

    /**
     * 通知人ids
     */
//    @NotBlank(message = "通知人ids不能为空", groups = { AddGroup.class, EditGroup.class })
    private String atUserIds;

    /**
     * 原始图片地址
     */
    @NotBlank(message = "原始图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String defaultImageUrl;


}
